package com.itheima.homework.Set接口;

import java.util.Collections;
import java.util.LinkedHashSet;

public class LinkedHashSetDemo {
    public static void main(String[] args) {
        LinkedHashSet<Integer> lh=new LinkedHashSet();
        Collections.addAll(lh,20,30,50,10,30,20);
        System.out.println(lh.size());

        for (Integer integer : lh) {
            if(integer>25){
                System.out.println(integer);
            }
        }
    }
}
